﻿using System;
using System.Web.Mvc;
using Enterprise.Framework.Core.Log;

namespace Resto.CostControl.Web.Controllers
{
    public class BaseController : Controller
    {
        protected override void ExecuteCore()
        {
            try
            {
                //SSORequest();

                base.ExecuteCore();
            }
            catch (Exception ex)
            {
                ExceptionLogWriter.Error(ex.Message, ex);

                throw ex;
            }
        }

        ///// <summary>
        ///// 执行SSO请求
        ///// </summary>
        //private void SSORequest()
        //{
        //    SSOClientHandler ssoClient = new SSOClientHandler();
        //    ssoClient.ProcessRequest(System.Web.HttpContext.Current);
            
        //}
    }
}